﻿<UserControl
    x:Class="AdminApp.Controls.SaveAndRejectControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="81"
    d:DesignWidth="262"
    DataContext="{Binding}">

    <Grid
        x:Name="LayoutRoot">
        <Border
            HorizontalAlignment="Center"
            Margin="4"
            VerticalAlignment="Center"
            BorderBrush="Black"
            BorderThickness="2"
            CornerRadius="3"
            Padding="4">
            <StackPanel
                x:Name="stackPanel1"
                Orientation="Horizontal">
                <Button
                    Content="{Binding Path=ApplicationStrings.SaveChanges, Source={StaticResource ResourceWrapper}}"
                    x:Name="_save"
                    Margin="0,0,2,0"
                    IsEnabled="{Binding HasChanges}"
                    Click="_save_Click" />
                <Button
                    Content="{Binding Path=ApplicationStrings.RejectChanges, Source={StaticResource ResourceWrapper}}"
                    x:Name="_reject"
                    Margin="2,0,0,0"
                    IsEnabled="{Binding HasChanges}"
                    Click="_reject_Click" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
